Repository navigation
Cover real Rails observer initialization and reload lifecycle - #11
Merged
Merged
Conversation
Danger ReportNo issues found. |
dblock
force-pushed
the
dblock/coverage
branch
4 times, most recently
from
October 18, 2026 13:32
682efb0 to
84f99e7
Compare
Boot an isolated minimal Rails application, verify configured observers instantiate at startup and on reload, and confirm callbacks still run against a persisted document. Include separate process coverage and a real standalone version load without altering tracked sources. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
dblock
force-pushed
the
dblock/coverage
branch
from
October 18, 2026 13:50
84f99e7 to
0d32c5c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace the inline subprocess lifecycle script with an Appraisal-managed Rails integration suite and a fixture application. Appraisals defines supported Mongoid 4–9 / Rails 4.2–8.1 dependency pairs and generates the Gemfiles used by CI.
The default rake task runs existing unit/generator examples and the integration suite in separate RSpec processes. Integration examples boot the app, verify observer configuration and persisted callbacks, then trigger Rails reloading and assert both model and observer classes are replaced and callbacks still persist. No fake Rails classes, instrumentation of instantiate_observers, constant stubbing, or version-file reloads.
Verified complete suites on Rails 8.1/Mongoid 9 and Rails 4.2/Mongoid 4 with compatible MongoDB services. Coverage combines genuine unit/integration executions; no source exclusions or narrowed library tracking. Previous 100% reports are obsolete after removing artificial version reloads.
Prepared by an AI on behalf of @dblock.